package cn.lanqiao.pojo;

import java.util.List;

public class Role {
    private Integer rid;
    private String rname;
    private List<Users> Users;

    public Role(Integer rid, String rname, List<cn.lanqiao.pojo.Users> users) {
        this.rid = rid;
        this.rname = rname;
        Users = users;
    }

    public Role(String rname, List<cn.lanqiao.pojo.Users> users) {
        this.rname = rname;
        Users = users;
    }

    public Role() {
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public List<cn.lanqiao.pojo.Users> getUsers() {
        return Users;
    }

    public void setUsers(List<cn.lanqiao.pojo.Users> users) {
        Users = users;
    }

    @Override
    public String toString() {
        return "Role{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                ", Users=" + Users +
                '}';
    }
}
